package com.kuzlak.cms.libraries;

public enum DateFormat {
    DATE_TIME(1, "%Y-%m-%d %H:%i:%s"),
    DATE(2, "%Y-%m-%d"),
    DATE_MONTH(3, "%Y-%m"),
    DATE_YEAR(4, "%Y"),
    J_DATE_TIME(5, "yyyy-MM-dd HH:mm:ss"),
    J_DATE(6, "yyyy-MM-dd"),
    J_DATE_MONTH(7, "yyyy-MM"),
    J_DATE_YEAR(8, "yyyy");


    private String name;
    private int type;

    // 构造方法
    private DateFormat(int type, String name) {
        this.name = name;
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
